package com.XinYun.Library.modules.judge.dao;

import com.XinYun.Library.utils.SqlUtils.DruidUtil;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

public class sql {
    public static ResultSet select3(String sid) throws SQLException {
        Connection connection= DruidUtil.getConnection();
        String sql="select isbanned from user_info where sid=?";
        PreparedStatement preparedStatement = connection.prepareStatement(sql);
        //对问号传参
        preparedStatement.setString(1,sid);
        ResultSet  resultSet = preparedStatement.executeQuery();
        return resultSet;
    }
}
